/**
 * 
 */
package org.vsg.common.jobscheduler.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author vison
 *
 */
@Entity
@Table(name = "QRTZ_TRIGGERS")
public class QuartzTrigger implements Serializable {
	
	@Id
	private QuartzTriggerPK id;

	@Column(name="JOB_NAME")	
	private String jobName;

	@Column(name="JOB_GROUP")	
	private String jobGroup;
	
	@Column(name="IS_VOLATILE")	
	private String isVolatile;

	@Column(name="DESCRIPTION")	
	private String description;

	@Column(name="NEXT_FIRE_TIME")		
	private long nextFireTime;
	
	@Column(name="PREV_FIRE_TIME")		
	private long prevFireTime;
	
	@Column(name="PRIORITY")		
	private int priority;

	@Column(name="TRIGGER_STATE")		
	private String triggerState;

	@Column(name="TRIGGER_TYPE")		
	private String triggerType;
	
	@Column(name="START_TIME")	
	private long startTime;
	
	@Column(name="END_TIME")	
	private long endTime;

	@Column(name="CALENDAR_NAME")	
	private String calendarName;
	
	@Column(name="MISFIRE_INSTR")		
	private short misfireInstr;
	
	@Column(name="JOB_DATA")		
	private byte[] jobData;

	public QuartzTriggerPK getId() {
		return id;
	}

	public void setId(QuartzTriggerPK id) {
		this.id = id;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}

	public String getIsVolatile() {
		return isVolatile;
	}

	public void setIsVolatile(String isVolatile) {
		this.isVolatile = isVolatile;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getNextFireTime() {
		return nextFireTime;
	}

	public void setNextFireTime(long nextFireTime) {
		this.nextFireTime = nextFireTime;
	}

	public long getPrevFireTime() {
		return prevFireTime;
	}

	public void setPrevFireTime(long prevFireTime) {
		this.prevFireTime = prevFireTime;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getTriggerState() {
		return triggerState;
	}

	public void setTriggerState(String triggerState) {
		this.triggerState = triggerState;
	}

	public String getTriggerType() {
		return triggerType;
	}

	public void setTriggerType(String triggerType) {
		this.triggerType = triggerType;
	}

	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}

	public long getEndTime() {
		return endTime;
	}

	public void setEndTime(long endTime) {
		this.endTime = endTime;
	}

	public String getCalendarName() {
		return calendarName;
	}

	public void setCalendarName(String calendarName) {
		this.calendarName = calendarName;
	}

	public short getMisfireInstr() {
		return misfireInstr;
	}

	public void setMisfireInstr(short misfireInstr) {
		this.misfireInstr = misfireInstr;
	}

	public byte[] getJobData() {
		return jobData;
	}

	public void setJobData(byte[] jobData) {
		this.jobData = jobData;
	}

	
	
}
